namespace Er
{
    using System;
    using System.Collections.Generic;
    using System.Data.Objects;
    using System.Linq;
    using System.Text;

    using Microsoft.Practices.Composite.Modularity;
    using Microsoft.Practices.Unity;

    using Shared.Models;

    public class PersistenceModule : IModule
    {
        private readonly IUnityContainer _container;

        public PersistenceModule(IUnityContainer container)
        {
            _container = container;
        }

        public void Initialize()
        {
            _container.RegisterType<IWordRepository, WordRepository>(new ContainerControlledLifetimeManager()); 
        }
    }
}